import { message } from 'ant-design-vue';

export function delbusinessHandler(params, deleteTip, confirmCallBack) {
  this.$confirm(deleteTip || '此操作将永久删除该项, 是否继续?', '提示', {
    confirmButtonText: '确定',
    cancelButtonText: '取消',
    type: 'warning'
  }).then(() => {
    if (confirmCallBack) {
      confirmCallBack(params)
    }
  }).catch(() => {
    message.info('已取消删除');
  })
};
